﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CosiNet.Conversions
{
    public static class BoolArray
    {
        /// <summary>
        /// Adds bool array two to the end of bool array one.
        /// </summary>
        /// <param name="one">The first array</param>
        /// <param name="two">The second array to add onto the end of array on</param>
        /// <returns>Array two joined on to the end of array one</returns>
        public static bool[] JoinOn(bool[] one, bool[] two)
        {
            bool[] ret = new bool[(one.Length + two.Length)];
            for (int i = 0; i < one.Length; i++)
            {
                ret[i] = one[i];
            }
            for (int i = 0; i < two.Length; i++)
            {
                ret[(i + one.Length)] = two[i];
            }
            return ret;
        }
    }
}
